import { PartialType } from '@nestjs/mapped-types';
import { IsNotEmpty } from 'class-validator';
import { Menu } from 'src/database/entitys/menu.entity';

/**创建菜单 */
export class CreateMenuDto extends PartialType(Menu) {
  /**菜单名称 */
  @IsNotEmpty({ message: '菜单名称不能为空' })
  name: string;
}
